<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>欢迎光临我的主页~~~~~</h1>
    <button>获取商品列表</button>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.2/jquery.js"></script>
<script>
    $("button").click(()=>{
        $.ajax({
            url:"/get/list",
            method:"get",
            success(res){
                console.log(res)
            }
        })
    })
</script>
</html>